package com.zz.bid.pojo.query;

import org.springframework.util.StringUtils;

/**
 * @author chenkehan
 * created at 2021/3/20  10:43 上午
 */
public class BidQuery extends BaseQuery {

    private String name;

    private String openDate;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOpenDate() {
        return openDate;
    }

    public void setOpenDate(String openDate) {
        this.openDate = openDate;
    }

    public String getStartOpenDate() {
        if (StringUtils.isEmpty(openDate) || ",".equals(openDate)) {
            return null;
        }
        return openDate.split(",")[0];
    }

    public String getEndOpenDate() {
        if (StringUtils.isEmpty(openDate) || ",".equals(openDate)) {
            return null;
        }
        return openDate.split(",")[1];
    }
}
